package com.nowcoder.community.service;

import com.nowcoder.community.entity.Comment;

import java.util.List;

/**
* @author mutou
* @description 针对表【comment】的数据库操作Service
* @createDate 2024-08-14 22:41:32
*/
public interface CommentService {
    List<Comment> findCommentByEntity(int entityType, int entityId, int offset, int limit);

    int findCommentCountByEntity(int entityType, int entityId);

    int addComment(Comment comment);

    Comment findCommentById(int id);
}
